package top.jiangqiang.qyblog.core.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Schema(name = "标签修改", description = "")
public class BlogTagUpdateDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "标签ID")
    @NotNull(message = "id不能为空")
    private Long id;

    @Schema(description = "标签名")
    @NotBlank(message = "标签名不能为空")
    private String name;

    @Schema(description = "标签别名")
    @NotBlank(message = "标签别名不能为空")
    private String alias;

}
